<?php
namespace Kxdr\Model;
use Think\Model\ViewModel;
class MedalUsersViewModel extends ViewModel {
   public $viewFields = array(
     'muser'=>array('_table'=>'sm_kxdr_honorary_medal_user','id'=>'medal_user_id','user_id','shop_uid','medal_num','get_time','raise_time','_type'=>'LEFT'),
	 'medal'=>array('_table'=>"sm_kxdr_honorary_medal",'id','getway','score','title','pic_url','cfg','version','status','_on'=>'muser.medal_id=medal.id','_type'=>'LEFT'),
	 'suser'=>array('_table'=>'sm_shop_users','addtime','lotts','wins','seeds','_on'=>'suser.id=muser.shop_uid','_type'=>'LEFT'),
	 'user'=>array('_table'=>'sm_user','usernick','mixednick','_on'=>'user.id=suser.userid','_type'=>'LEFT')
  );
 }